import random


def random_walk(n):
    total = 0
    for i in range(n):
        if random.random() > 0.5:
            total += 1
    return total

n  = 100
for i in range(100):
    print(random_walk(n)/n)